package com.cyn.controller.rabbitmq.te1;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "topic.message")
public class ToplicReceiver {

	@RabbitHandler
	public void process(String hello) {
		System.out.println("Receiver1  : " + hello);
	}
}
